import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-11-24
 * Time:15:44
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //  _=减法；__=加法
        int A_B = sc.nextInt();
        int B_C = sc.nextInt();
        int A__B = sc.nextInt();
        int B__C = sc.nextInt();

        int A = (A_B + A__B)/2;
        int B = (B_C + B__C)/2;
        int C = B - B_C;
        System.out.print(A + " " + B + " " + C);


    }
}
